home *** CD-ROM | disk | FTP | other *** search
- ENVCALC.ZIP demonstrates storing variables using a DOS-like
- environment table (tCollection), and using them in SET, CALC,
- LET, and ECHO commands. For clarity, [] are used instead of %s to
- indicate variables (or "macros"). Here's a sample session:
-
- C>ENVCALC
- ? CALC 2+(3*4)
- > 14
- ? LET this=2+(3*4)
- > THIS=14
- ? SET that=2+(3*4)
- > THAT=2+(3*4)
- ? LET this=[this]+[that]
- > THIS=28
- ? SET
- > THAT=2+(3*4)
- > THIS=28
- ?
-
- Logical and Boolean operators are also implemented, with FALSE
- being represented as 0 and TRUE being represented as -1 (NOT 0).
- The calc command is based on Borland's tCalc object, and does not
- support precedence outside of parentheses. Simple command line
- demo, easy to adapt. Uploaded by author, Ted Husted.
-
- /PARSING/CALCULATOR/EXPRESSIONS/EXPRESSION EVALUATOR/TCALC/